#pragma once
#include <SFML/Graphics.hpp>


sf::Texture kometaTextures[3];
struct Meteor {
    sf::Sprite kometaSprite;
    float speed = 0.0f;
    Meteor(float radius, float speea, int i, int j, sf::Vector2f position) : speed(speea) {

        switch (i){
            case 0: { kometaTextures[0].loadFromFile("Image/kometa1.png"); kometaSprite.setTexture(kometaTextures[0]); break; }
            case 1: { kometaTextures[1].loadFromFile("Image/kometa2.png"); kometaSprite.setTexture(kometaTextures[1]); break; }
            case 2: { kometaTextures[2].loadFromFile("Image/kometa3.png"); kometaSprite.setTexture(kometaTextures[2]); break; }
            default:
                break;
        }
        kometaSprite.setPosition(position); kometaSprite.scale(sf::Vector2f(j, j));
    }
};